package com.wing.product.model.request;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.mybatis.common.BaseEntity;
import com.wing.product.model.entity.WarehouseProcessingReportDetail;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description="加工报工表")
@Data
@EqualsAndHashCode(callSuper=true)
public class WarehouseProcessingReportForm extends BaseEntity<WarehouseProcessingReportForm> {

    @Schema(description="上机记录id")
    private Long computerPracticeId;

    @Schema(description="上机记录编号")
    private String computerPracticeCode;

    @Schema(description="所属生产订单id")
    private Long productionOrderId;

    @Schema(description="所属生产订单编号")
    private String productionOrderNumber;

    @Schema(description="产成品id")
    private Long productId;

    @Schema(description="产成品料号")
    private String customerProductCode;

    @Schema(description="物料料号")
    private String materialNumber;

    @Schema(description="生产线id")
    private Long productionLineId;

    @Schema(description="车间id")
    private Long workshopId;

    @Schema(description="计划产量")
    private BigDecimal plannedQuantity;

    @Schema(description="客户id")
    private Long customerId;

    @Schema(description="上机时间")
    private LocalDateTime computerPracticeTime;

    @Schema(description="加工记录明细")
    private List<WarehouseProcessingReportDetailForm> warehouseProcessingReportDetailList;
}
